/**
*@Author: QWP
*@Description: 临时展现的菜单
*@Date 2024-07-08 09:55
*/
import { VueElement, h } from 'vue';
import UIconFont from '@/components/common/iconfont/IconFont.vue'

export interface _IMenu {
  icon?: Function | any,
  label?: VueElement | string,
  disabled?: boolean,
  key: string | number,
  path?: string,
  nevigateType?: string, // 1 OA   2 应急   3 辅助
  children?: Array<_IMenu>,
  frameType?: string
}

const yjlabel = "YJ"; // 应急

export const tempMenus:Array<_IMenu> = [
  // { label: '首页', key: '9', path: '/TransitIndex/Index', nevigateType: '1', icon: h(UIconFont, { type: 'icon-lujing' }),  },
  { label: '行政管理', key: '10', icon: h(UIconFont, { type: 'icon-hangzhengguanli' }), nevigateType: '1',
    children: [
      { label: '考勤管理', key: '10-5',
        children: [
          { label: '我的考勤', key: '10-5-7', path: '/TransitIndex/MyCheckIn' },
          // { label: '考勤申请', key: '10-5-8', path: '/TransitIndex/MyAllApplicant/1' },
          { label: '申请审核', key: '10-5-9', path: '/TransitIndex/MyAllApplicant/2' },
          { label: '部门考勤', key: '10-5-3', path: '/TransitIndex/DeptCheckIn' },
        ]
      },
      { label: '备勤管理', key: '10-6', path: '/TransitIndex/BeDuty' },
      { label: '值班管理', key: '10-7', path: '/TransitIndex/OnGuard' },
      { label: '差旅管理', key: '10-3',
        children: [
          { label: '差旅申请', key: '10-3-1', path: '/TransitIndex/OaTravel' },
          {label: '差旅审核', key: '10-3-2', path: '/TransitIndex/OaTravelExamine'}
        ]
      },
      { label: '车辆管理', key: '11', nevigateType: '1',
        children: [
          { label: '车辆基本信息管理', key: '11-1', path: '/TransitIndex/OaCarBaseInfo' },
          { label: '驾驶员信息配置', key: '11-4', path: '/TransitIndex/Driver' },
          { label: '派车申请', key: '11-2', path: '/TransitIndex/OaSendCar/1' },
          { label: '派车申请审核', key: '11-3', path: '/TransitIndex/OaSendCar/2' },
          { label: '派车确认', key: '11-3', path: '/TransitIndex/OaSendCar/3' },
          { label: '派车归队', key: '11-10', path: '/TransitIndex/OaCarSendReturn' },
          { label: '车辆保险', key: '11-6', path: '/TransitIndex/OaCarInsure' },
          { label: '车辆年检', key: '11-7', path: '/TransitIndex/OaCaryearCheck' },
          { label: '维修保养', key: '11-8', path: '/TransitIndex/OaCarMaintain' },
          { label: '合作机构', key: '11-9', path: '/TransitIndex/OaCarCooperation' },
        ]
      },
      { label: '会议管理', key: '10-4',
        children: [
          { label: '会议申请', key: '10-4-1', path: '/TransitIndex/OaMeetApplicant' },
          { label: '会议申请审核', key: '10-4-2', path: '/TransitIndex/OaMeetApplicantAudit' },
          { label: '会议室管理', key: '10-4-3', path: '/TransitIndex/OaMeetRoom' },
          { label: '会议室使用情况', key: '10-4-4', path: '/TransitIndex/OaMeetRoomUseDetial' },
        ]
      },
      { label: '合同管理', key: '10-1',
        children: [
          { label: '支出合同登记', key: '10-1-1', path: '/TransitIndex/ContractPay' },
          { label: '收入合同登记', key: '10-1-2', path: '/TransitIndex/ContractIncome' },
          { label: '合同查询', key: '10-1-3', path: '/TransitIndex/ContractSearch' },
        ]
      },
      { label: '资产管理', key: '2',  nevigateType: '1',
        children: [
          { label: '资产登记', key: '2-1', path: '/TransitIndex/AssetRegister' },
          { label: '资产申请', key: '2-2', 
            children: [
              { label: '资产领用申请', key: '2-2-1', path: '/TransitIndex/AssetApplicant' },
              { label: '资产借用申请', key: '2-2-2', path: '/TransitIndex/AssetBorrowApplicant' },
              { label: '资产变更申请', key: '2-2-3', path: '/TransitIndex/AssetChangeApplicant' },
              { label: '资产报修申请', key: '2-2-4', path: '/TransitIndex/AssetMaintainApplicant' },
              { label: '资产报废申请', key: '2-2-5', path: '/TransitIndex/AssetScrapApplicant' },
            ]
          },
          { label: '统计报表', key: '2-3', 
            children: [
              { label: '资产明细表', key: '2-3-1', path: '/TransitIndex/AssetDetial' },
              { label: '部门资产明细表', key: '2-3-2', path: '/TransitIndex/DeptAssetsIndex' },
              { label: '资产分类查询', key: '2-3-3', path: '/TransitIndex/AssetsTypeIndex' },
            ]
          },
        ]
      },
      { label: '办公用品管理', key: '3', nevigateType: '1',
        children: [
          { label: '物资入库', key: '3-1', path: '/TransitIndex/OfficalAssetInstore' },
          { label: '办公用品领用', key: '3-2', path: '/TransitIndex/OfficalGoodsReceive/1' },
          { label: '办公用品领用审核', key: '3-3', path: '/TransitIndex/OfficalGoodsReceive/2' },
        ]
      },
      // { label: '新闻宣传', key: '10-2',
      //   children: [
      //     { label: '新闻登记', key: '10-2-1', path: '/TransitIndex/NewsPublicity/1' },
      //     { label: '新闻发布', key: '10-2-2', path: '/TransitIndex/NewsPublicity/2' },
      //   ]
      // },
      // { label: '人事管理', key: '10-5', icon: h(UIconFont, { type: 'icon-renshiguanli' }), nevigateType: '1',
      //   children: [
      //     { label: '考勤登记', key: '10-5-1', path: '/TransitIndex/CheckInSign/1' },
      //     { label: '考勤登记审核', key: '10-5-2', path: '/TransitIndex/CheckInSign/2' },
      //     // { label: '我的考勤', key: '10-5-7', path: '/TransitIndex/MyCheckIn' },
      //     { label: '用户编辑考勤', key: '10-5-10-5', path: '/TransitIndex/UserEditCheckIn' },
      //     // { label: '部门考勤', key: '10-5-3', path: '/TransitIndex/DeptCheckIn' },
      //     { label: '权限管理', key: '10-5-5', path: '/TransitIndex/OaPower' },
      //     { label: '通讯录', key: '10-5-6', path: '/TransitIndex/AddressBook' },
      //   ]
      // },
    ]
  },
  { label: yjlabel + '管理', key: '5', icon: h(UIconFont, { type: 'icon-yingjixiangying' }), nevigateType: '2',
    children: [
      { label: yjlabel + '响应', key: '5-3',
        children: [
          { label: yjlabel + '群创建', key: '5-3-1', path: '/TransitIndex/EmergencyGroupGuid' },
          { label: yjlabel + '群管理', key: '5-3-3', path: '/TransitIndex/EmergencyGroup' },
        ]
      },
      { label: '综合预警管理', key: '12-2', path: '/TransitIndex/SumWarning' },
      { label: '重大隐患管理', key: '12-1', path: '/TransitIndex/HideDangerCheck' },
      { label: yjlabel + '预案', key: '5-2',path: '/TransitIndex/EmergencyScheme'
        // children: [
          // { label: '事故灾难应急方案', key: '5-2-1', path: '/TransitIndex/EmergencyScheme' },
          // { label: '自然灾害应急方案', key: '5-2-2', path: '/TransitIndex/EmergencyScheme' },
          // { label: '公共卫生应急方案', key: '5-2-3', path: '/TransitIndex/EmergencyScheme' },
          // { label: '社会安全应急方案', key: '5-2-4', path: '/TransitIndex/EmergencyScheme' },
        // ]
      },
      { label: yjlabel + '救援队伍管理', key: '5-4-1', path: '/TransitIndex/EmergencyResource' },
      { label: yjlabel + '资源地图', key: '5-4-2', path: '/TransitIndex/EmergencyResourceMap' },
      { label: '动态报表收集', key: '12-6',
        children: [
          { label: '报表创建', key: '12-6-1', path: '/TransitIndex/DynamicReportCreate' },
          { label: '任务填报', key: '12-6-2', path: '/TransitIndex/DynamicReportInput' },
        ]
      },
      { label: '动态表单', key: '13-6',
        children: [
          { label: '表单创建', key: '13-6-1', path: '/TransitIndex/DynamicForm' },
        ]
      },
      
      // { label: '关注企业管理', key: '5-1',
      //   children: [
      //     { label: '企业基本信息管理', key: '5-1-1', path: '/TransitIndex/FocusFirmInfo' },
      //     { label: '企业风险情况管理', key: '5-1-2', path: '/TransitIndex/FocusFirmRisk' },
      //     { label: '企业处罚情况管理', key: '5-1-3', path: '/TransitIndex/FocusFirmPenalize' },
      //     { label: '企业整改情况管理', key: '5-1-4', path: '/TransitIndex/FocusFirmReform' },
      //   ]
      // },
    ]
  },
  { label: '公文管理', key: '1', icon: h(UIconFont, { type: 'icon-a-lujing1' }), nevigateType: '1',
    children: [
      { label: '发文管理', key: '1-2', 
        children: [
          { label: '发文拟稿', key: '1-2-1', path: '/TransitIndex/DispatchDoc/1' },
          { label: '发文签批', key: '1-2-2', path: '/TransitIndex/DispatchDoc/2' },
          // { label: '发文归档', key: '1-2-3', path: '/TransitIndex/DispatchDoc/3' },
          // { label: '公文套红', key: '1-2-4', path: '/TransitIndex/DispatchDoc/4' },
        ]
      },
      { label: '收文管理', key: '1-3', 
        children: [
          { label: '收文登记', key: '1-3-1', path: '/TransitIndex/IncomeDoc/1' },
          { label: '收文登记审核', key: '1-3-2', path: '/TransitIndex/IncomeDoc/2' },
          // { label: '收文归档', key: '1-3-3', path: '/TransitIndex/IncomeDoc/3' },
        ]
      },
      { label: '公文查询', key: '1-4', path: '/TransitIndex/DocSearch' },
    ]
  },
  
  { label: '辅助功能', key: '15', nevigateType: '3', icon: h(UIconFont, { type: 'icon-duanxinguanli' }),
    children: [
      { label: '我的日程', key: '15-6', path: '/TransitIndex/MyCalender', nevigateType: '3', },
      { label: '知识库', key: '15-4', path: '/TransitIndex/KnowledgeStore', nevigateType: '3', },
      { label: '文档管理', key: '15-3', path: '/TransitIndex/DocManager', nevigateType: '3', },
      { label: '研判管理', key: '15-7', path: '/TransitIndex/StudyJudge', nevigateType: '3', },
      { label: '通讯录', key: '15-5', path: '/TransitIndex/AddressBook' },
      // { label: '即时沟通', key: '15-0', path: '/TransitIndex/EmergencyChat' },
      { label: '短信管理', key: '15-1', nevigateType: '3', 
        children: [
          { label: '短信接收人维护', key: '15-1-1', path: '/TransitIndex/SmsReceiveUser' },
          { label: '短信发送申请', key: '15-1-2', path: '/TransitIndex/SmsSendApplicant/1' },
          { label: '短信发送申请审核', key: '15-1-3', path: '/TransitIndex/SmsSendApplicant/2' },
        ]
      },
      { label: '天气信息', key: '15-2', path: '/TransitIndex/WeatherInfo', nevigateType: '3', },
      { label: '社区论坛', key: '15-8', path: '/TransitIndex/ForumManagement', nevigateType: '3',  },
    ]
  },
  // { label: '政策文件', key: '13', path: '/TransitIndex/PolicyFile', nevigateType: '3', icon: h(UIconFont, { type: 'icon-duanxinguanli' }), },
  { label: '系统管理', key: '12', nevigateType: '1', icon: h(UIconFont, { type: 'icon-xitongguanli' }),
    children: [
      { label: '菜单管理', key: '12-1', path: '/TransitIndex/Feature' },
      { label: '单位管理', key: '12-2', path: '/TransitIndex/Unit' },
      { label: '部门管理', key: '12-3', path: '/TransitIndex/Department' },
      { label: '用户管理', key: '12-4', path: '/TransitIndex/User' },
      { label: '角色管理', key: '12-5', path: '/TransitIndex/Role' },
      { label: '角色权限管理', key: '12-6', path: '/TransitIndex/RolePower' },
      { label: '短信发送配置', key: '12-7', path: '/TransitIndex/SmsConfig' },
      // { label: '数据字典管理', key: '12-4', path: '/TransitIndex/' },
      // { label: '系统日志管理', key: '12-5', path: '/TransitIndex/' },
      // { label: '权限转移管理', key: '12-5', path: '/TransitIndex/' },
    ]
  },
  { label: '流程设计', key: '18', icon: h(UIconFont, { type: 'icon-bangongyongpinguanli' }), nevigateType: '1',
    children: [
      { label: '类别管理', key: '18-3', path: '/TransitIndex/Category', },
      // { label: '流程查看', key: '18-1', path: '/TransitIndex/FlowDefinition' },
      { label: '流程定义', key: '18-2', path: '/TransitIndex/FlowDefinition' },
      // { label: '流程定义', key: '18-1', path: 'http://192.168.3.108:8088/flow/flowDefinition', frameType: 'iframe' },
    ]
  },
  { label: '统计报表', key: '19', icon: h(UIconFont, { type: 'icon-bangongyongpinguanli' }), nevigateType: '1',
    children: [
      { label: '差旅统计', key: '19-1', path: '/TransitIndex/TravelReport', },
      { label: '派车统计', key: '19-2', path: '/TransitIndex/SendCarReport', },
      { label: '发文统计', key: '19-3', path: '/TransitIndex/DispatchDocReport', },
      { label: '收文统计', key: '19-4', path: '/TransitIndex/IncomeDocReport', },
    ]
  },
]